using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// User_Account - 用户表 - 对象继承类
    /// </summary>
    [MetadataType(typeof(UserAccountValidaTion))]
    [Serializable]
    public class UserAccount : IUserAccount<UserAccount>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class UserAccountValidaTion
       {

     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 昵称
        /// </summary>
        [Display(Name ="昵称")]
        [Required]
        [StringLength(50)]
        public String NickName
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name ="状态")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.UserAccount.State State
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 注册时间
        /// </summary>
        [Display(Name ="注册时间")]
        [Required]

        public DateTime CreateTtime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 权限组ID
        /// </summary>
        [Display(Name ="权限组ID")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.UserAccount.PurviewEnum PurviewEnum
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
